<?php
defined('_JEXEC') or die;
	
	class JoomlaTemplate
	{
		//$width = $this->params->get('pageWidth');
		
		
		public $contentWidth;
		public function __contruct(){
			
		}
		public function calWidth()
		{
			$content = 99;
			$leftWidth = $this->params->get('leftWidht');
			$rightWidth = $this->params->get('rightWidth');
			if($this->countModules("left") && $this->countModules('right')) $contentWidth = $content - $rightWidth - $leftWidth;
			if($this->countModules("left") && !$this->countModules('right')) $contentWidth = $content - $leftWidth;
			if(!$this->countModules("left") && $this->countModules('right')) $contentWidth = $content - $rightWidth;
		}
	}
?>